/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.entity;

/**
 *
 * @author FITRI ANDRI ASTUTI
 */
public class HomeEntity {
    private String nama_kec;
    private String nama_desa;
    private String no_bs;
    private String no_urut_bs;
    private String B1R6;
    private String NKS;
    private String B1R8;
    private String B1R9;

    public HomeEntity() {
    }

    public HomeEntity(String nama_kec, String nama_desa, String no_bs, String no_urut_bs, String B1R6, String NKS, String B1R8, String B1R9) {
        this.nama_kec = nama_kec;
        this.nama_desa = nama_desa;
        this.no_bs = no_bs;
        this.no_urut_bs = no_urut_bs;
        this.B1R6 = B1R6;
        this.NKS = NKS;
        this.B1R8 = B1R8;
        this.B1R9 = B1R9;
    }

    public String getB1R6() {
        return B1R6;
    }

    public String getB1R8() {
        return B1R8;
    }

    public String getB1R9() {
        return B1R9;
    }

    public String getNKS() {
        return NKS;
    }

    public String getNama_desa() {
        return nama_desa;
    }

    public String getNama_kec() {
        return nama_kec;
    }

    public String getNo_bs() {
        return no_bs;
    }

    public String getNo_urut_bs() {
        return no_urut_bs;
    }

    public void setB1R6(String B1R6) {
        this.B1R6 = B1R6;
    }

    public void setB1R8(String B1R8) {
        this.B1R8 = B1R8;
    }

    public void setB1R9(String B1R9) {
        this.B1R9 = B1R9;
    }

    public void setNKS(String NKS) {
        this.NKS = NKS;
    }

    public void setNama_desa(String nama_desa) {
        this.nama_desa = nama_desa;
    }

    public void setNama_kec(String nama_kec) {
        this.nama_kec = nama_kec;
    }

    public void setNo_bs(String no_bs) {
        this.no_bs = no_bs;
    }

    public void setNo_urut_bs(String no_urut_bs) {
        this.no_urut_bs = no_urut_bs;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HomeEntity other = (HomeEntity) obj;
        if ((this.nama_kec == null) ? (other.nama_kec != null) : !this.nama_kec.equals(other.nama_kec)) {
            return false;
        }
        if ((this.nama_desa == null) ? (other.nama_desa != null) : !this.nama_desa.equals(other.nama_desa)) {
            return false;
        }
        if ((this.no_bs == null) ? (other.no_bs != null) : !this.no_bs.equals(other.no_bs)) {
            return false;
        }
        if ((this.no_urut_bs == null) ? (other.no_urut_bs != null) : !this.no_urut_bs.equals(other.no_urut_bs)) {
            return false;
        }
        if ((this.B1R6 == null) ? (other.B1R6 != null) : !this.B1R6.equals(other.B1R6)) {
            return false;
        }
        if ((this.NKS == null) ? (other.NKS != null) : !this.NKS.equals(other.NKS)) {
            return false;
        }
        if ((this.B1R8 == null) ? (other.B1R8 != null) : !this.B1R8.equals(other.B1R8)) {
            return false;
        }
        if ((this.B1R9 == null) ? (other.B1R9 != null) : !this.B1R9.equals(other.B1R9)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 53 * hash + (this.nama_kec != null ? this.nama_kec.hashCode() : 0);
        hash = 53 * hash + (this.nama_desa != null ? this.nama_desa.hashCode() : 0);
        hash = 53 * hash + (this.no_bs != null ? this.no_bs.hashCode() : 0);
        hash = 53 * hash + (this.no_urut_bs != null ? this.no_urut_bs.hashCode() : 0);
        hash = 53 * hash + (this.B1R6 != null ? this.B1R6.hashCode() : 0);
        hash = 53 * hash + (this.NKS != null ? this.NKS.hashCode() : 0);
        hash = 53 * hash + (this.B1R8 != null ? this.B1R8.hashCode() : 0);
        hash = 53 * hash + (this.B1R9 != null ? this.B1R9.hashCode() : 0);
        return hash;
    }
}
